<?php
$connect = mysql_connect('localhost','root','');
mysql_select_db("admintool");
error_reporting(E_ALL ^ E_NOTICE);
session_start();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
$id=$_GET['id'];

$delete = "DELETE FROM project WHERE projectid='$id'";
$de = mysql_query($delete);

$del ="DELETE FROM userclient WHERE projectid='$id'";
$d = mysql_query($del);

header("Location: project_list.php");
//print_r($delete);
}
else
{
header("Location: login.php");
}
?>

